package cn.edu.scau.cmi.linhongxin.composite.cosistent;

import java.util.Iterator;

public class Team extends Organization{
	public Team(String name) {
		super(name);
	}
	
	@Override
	public void add(Organization o) {
		list.add(o);
	}
	
	@Override
	public void remove(Organization o) {
		list.remove(o);
	}
	
	@Override
	public Organization getChild(int index) {
		return list.get(index);
	}

	@Override
	public Iterator<Organization> elements(){
		return list.iterator();
	}
}
